from django.template.library import Library

from main.models import CatagoryForm

register = Library()

@register.simple_tag
def get_catageorys():
    return CatagoryForm.objects.filter(parent__isnull=True)